home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tcl / split.z / split
Encoding:
Text File  |  1998-10-30  |  2.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. sssspppplllliiiitttt((((3333TTTTccccllll))))                                                        sssspppplllliiiitttt((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      split - Split a string into a proper Tcl list
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      sssspppplllliiiitttt _s_t_r_i_n_g ?_s_p_l_i_t_C_h_a_r_s?
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      Returns a list created by splitting _s_t_r_i_n_g at each character that is in
  17.      the _s_p_l_i_t_C_h_a_r_s argument.  Each element of the result list will consist of
  18.      the characters from _s_t_r_i_n_g that lie between instances of the characters
  19.      in _s_p_l_i_t_C_h_a_r_s.  Empty list elements will be generated if _s_t_r_i_n_g contains
  20.      adjacent characters in _s_p_l_i_t_C_h_a_r_s, or if the first or last character of
  21.      _s_t_r_i_n_g is in _s_p_l_i_t_C_h_a_r_s.  If _s_p_l_i_t_C_h_a_r_s is an empty string then each
  22.      character of _s_t_r_i_n_g becomes a separate element of the result list.
  23.      _S_p_l_i_t_C_h_a_r_s defaults to the standard white-space characters.  For example,
  24.  
  25.           sssspppplllliiiitttt """"ccccoooommmmpppp....uuuunnnniiiixxxx....mmmmiiiisssscccc"""" ....
  26.  
  27.      returns """"ccccoooommmmpppp uuuunnnniiiixxxx mmmmiiiisssscccc"""" and
  28.  
  29.           sssspppplllliiiitttt """"HHHHeeeelllllllloooo wwwwoooorrrrlllldddd"""" {{{{}}}}
  30.  
  31.      returns """"HHHH eeee llll llll oooo {{{{ }}}} wwww oooo rrrr llll dddd"""".
  32.  
  33.  
  34. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  35.      list, split, string
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.